package com.huangpeng.designmodel.dubbo;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author hp
 * @Title 生产者
 * @Package
 * @Date 2022/1/19 16:16
 * @Description
 * @Version 1.0
 */
public class Provider {
    public static void main(String[] args) throws Exception {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"applicationContext-dubbo-server.xml"});
        context.start();

        System.in.read(); // 为保证服务一直开着，利用输入流的阻塞来模拟
    }
}
